[LINUX] netfront: Don't call netif_carrier_off until the device is
authorIan Campbell <ian.campbell@xensource.com>
Thu, 1 Feb 2007 10:20:34 +0000 (10:20 +0000)
committerIan Campbell <ian.campbell@xensource.com>
Thu, 1 Feb 2007 10:20:34 +0000 (10:20 +0000)
commit5d4e92412ea79ff6a085b756721ddc735a99aa1d
tree3550bbf11e2a94f400ca59c8e7a89ef4a14bd33b
parent165a4a0f9fb1d8ef858a2653fae74fd239d2034b
[LINUX] netfront: Don't call netif_carrier_off until the device is
fuly allocated.

netif_carrier_off() causes events to be queued on the device so if we
subsequently abort the allocation (e.g. due to lack of grant entries)
then we crash trying to access the now invalid device.

Signed-off-by: Ian Campbell <ian.campbell@xensource.com>
linux-2.6-xen-sparse/drivers/xen/netfront/netfront.c